package com.xnyzc.lhy.mis.controller.cmsapi.journal;


import com.xnyzc.lhy.common.entity.Rv;
import com.xnyzc.lhy.mis.service.cms.journal.IOaSysJournalService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 系统日志表 前端控制器
 * </p>
 *
 * @author zhaolijie
 * @since 2019-09-25
 */
@RestController
@RequestMapping("/cmsapi/journal")
public class OaSysJournalController {

    @Autowired
    private IOaSysJournalService iOaSysJournalService;

    /**
     * 分页获取日志信息
     * @param ip：IP
     * @param current：需要查询的页码
     * @return
     */
    @GetMapping(value = "/getJournalList")
    public Rv getJournalList(String ip, Integer current) {
        return iOaSysJournalService.getJournalList(ip, current);
    }

}
